<include file="Public:header" />
<script language="JavaScript">
    ifcheck = true;
    function CheckAll(form) {
        for (var i = 0; i < form.elements.length - 2; i++) {
            var e = form.elements[i];
            e.checked = ifcheck;
        }
        ifcheck = ifcheck == true ? false : true;
    }
</script>
<style>
    .tittleA{height:40px;line-height: 40px;border-bottom:1px solid #eee;padding-left:10px;font-size: 16px; }
    .zong{width:100%;height:40px;line-height: 40px;border-bottom: 1px solid #ddd}
    .tittle{width:100px;float:left;padding-left:10px;}
    .info{float:left}
.mar-top{margin-top:15px!important;}
    .pag{text-align: center}
    .button_text{padding:3px 12px;margin-top: 15px;}
    select{width:70%;}
    #UserID{border:1px solid #eee;
        width:70%;}
    .bt_tj{padding:2px 15px;}
    .chaxun{margin-top:10px;text-align: center}
</style>
<script language=javascript src="__PUBLIC__/Js/wpCalendar.js"></script>
<div class="accounttitle"><h1>代理审核</h1></div>
<div class="ncenter_box">
<style>
        .infoA p{
            float: left;
        }
        .infoA{
            margin-top:10px;
        }
    </style>
    <form method='post' action="__URL__/adminMenber/">
        <div style="width: 400px;margin: 0 auto;">

            <div class="infoA">
                <p>搜索会员：</p>
                <input name="UserID" type="text" id="UserID" value="{$UserID}" title="帐号查询" maxlength="50" >
            </div>
            <div style="clear: both"></div>
            <div class="infoA">
                <p>级别条件：</p>
                <select name="ulevel" >
                    <option value="0">全部</option>
                    <foreach name="HYNM" item="ulv">
                        <option value="{$key}" <if condition="$uulv eq $key" >selected</if> >{$ulv}</option>
                    </foreach>
                </select>
            </div>
            <div class="chaxun">
            <input type="submit"  value="查询" style="padding: 8px 12px; background: #b13a33;color: #fff;border-radius: 5px">
        </div>
        </div>
    </form>
    <div style="margin-top:10px"></div>

<form name="form3" method="post" action="__URL__/AgentTo">
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">
    <volist name="list" id="vo" key="k">
        <div <if condition="$k%2== '0'"><if condition="$k%4== '0'"> style="background-color:#f2dede;border-left:2px solid #d73d32 ;"<else/> style="background-color:#fcf8e3;border-left:2px solid #f4b400 ;" </if ><else/>style="background-color:#dff0d8;border-left:2px solid #53a93f;"</if > >
        <div class="zong">
            <div class="tittle"><input id="checkbox" type="checkbox" name="tabledb[]" value="{$vo['id']}" class="btn2 mar-top" /></div>
            <div class="info"></div>
        </div>
        <div class="zong">
            <div class="tittle">序号</div>
            <div class="info"><a style="color:#f00;font-size: 16px;">{$vo['id']}</a></div>
        </div>
        <div class="zong">
            <div class="tittle">USG交易帐号</div>
            <div class="info"><a href="__URL__/adminuserData/PT_id/{$vo['id']}" style="color:#f00;font-size: 16px;">{$vo['user_id']}</a></div>
        </div>
        <div class="zong">
            <div class="tittle">姓名</div>
            <div class="info">{$vo['user_name']}</div>
        </div>
        <div class="zong">
            <div class="tittle">用户级别</div>
            <div class="info">{$HYNM[$vo['u_level']]}</div>
        </div>
        <div class="zong">
            <div class="tittle">开通时间</div>
            <div class="info">{$vo.pdt|date='Y-m-d H:i:s',###}</div>
        </div>
        <div class="zong">
            <div class="tittle">商城金币</div>
            <div class="info">{$vo['agent_cf']}</div>
        </div>
        <div class="zong">
            <div class="tittle">电子币</div>
            <div class="info">{$vo['agent_use']}</div>
        </div>
        <div class="zong">
            <div class="tittle">选择代理级别</div>
            <div class="info">
               <select name="is_agent[{$vo['id']}]" style="width: 180px;height: 30px;margin-top: 5px;">
                <foreach name="Agent" item="voo" key="key" >
                <if condition="$key egt $vo['shoplx']">
                <option value="{$key}">{$voo}</option>
                </if>
                </foreach>
               </select>
          </div>
        </div>
</div>
</volist>
</table>
<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
      <td width="60%">
          <input name="全选" type="button" class="button_text button" id="AllX" onclick="CheckAll(this.form)" value="全选" />   &nbsp;&nbsp;
           <input type="submit" name="action" value="审核通过" class="button_text button" onclick="{if(confirm('确定审核通过吗?')){return true;}return false;}">&nbsp;&nbsp;
          
      </td>
    </tr>
</table>
<table width="100%" class="tab3_bottom" border="0" cellpadding="0" cellspacing="1">
    <tr>
        <td>{$page}</td>
    </tr>
</table>
</form> 
</div>
<script>new TableSorter("tb1");</script>
<div style="height: 100px;"></div>
<include file="Public:footer" />
